package com.sean.designpatterns.create.abstractfactory;

public class ColorFactory extends AbstractFactory {

    @Override
    Shape getShape(String name) {
        return null;
    }

    @Override
    Color getColor(String name) {
        if (name == "Red") {
            return new Red();
        } else if (name == "Green") {
            return new Green();
        } else if (name == "Blue") {
            return new Blue();
        } else {
            return null;
        }
    }
}
